import {$SysMenuApi} from "@/network/menu/SysMenuApi";

const NavBar = {
	state: {
		menuArr: []
	},

	mutations: {
		setMunu(state, payload) {
			state.menuArr = payload;
		}
	},

	getters: {},

	actions: {
		async getMunu({commit}) {
			let res = await $SysMenuApi.getMenuData();
			commit('setMunu', res.data);
		}
	},
	namespaced: true
}

export default NavBar;